package com.cy.pj.sys.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author LiuXu
 * @create 2020-07-17 10:38
 */
@Mapper
@Repository
public interface SysRoleMenuDao {
    //基于菜单id删除关系数据
    int deleteObjectsByMenuId(Integer menuId);

    int deleteObjectsByRoleId(Integer roleId);

    int insertObjects(
            @Param("roleId") Integer roleId,
            @Param("menuIds") Integer[] menuIds
    );

}
